
//======================================================================
//
//        Copyright : Zhengzhou Strawberry Computer Technology Co.,LTD.
//        All rights reserved
//        
//        Application:NFinal MVC framework
//        Filename :{$aspxPageClassName}.cs
//        Description :模板提示类
//
//        created by Lucas at  2015-6-30`
//     
//        WebSite:http://www.nfinal.com
//
//======================================================================
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication1.DDD.Views.Default.users
{
    public partial class show : System.Web.UI.Page
    {
		//数据库模型

public struct __show_us__:NFinal.IModel
		{
			/// <summary>
            /// 用户表ID
            /// </summary>
			public System.Int64 id;
			/// <summary>
            /// 名称
            /// </summary>
			public System.String name;
			/// <summary>
            /// 密码
            /// </summary>
			public System.String pwd;
						#region Nullable
			private bool __is_null__;
			public bool __Is_Null__
			{
				get {
					return __is_null__;
				}
				set
				{
					 __is_null__=value;
				}
			}
			public static implicit operator __show_us__(string __value__)
			{
				var __value2__ = new __show_us__();
				__value2__.__Is_Null__ = __value__==null;
				return __value2__;
			}
			public static  bool operator true(__show_us__ __value__)
			{
				return !__value__.__is_null__;
			}
			public static bool operator false(__show_us__ __value__)
			{
				return !__value__.__is_null__;
			}
			#endregion
			#region 写Json字符串
			public void WriteJson(System.IO.TextWriter tw)
			{
				tw.Write("{");

						tw.Write("\"id\":");
						tw.Write(id.ToString());
						tw.Write(",");
						tw.Write("\"name\":");
						if(name==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(name);
							tw.Write("\"");
						}
						tw.Write(",");
						tw.Write("\"pwd\":");
						if(pwd==null)
						{
							tw.Write("null");
						}
						else
						{
							tw.Write("\"");
							tw.Write(pwd);
							tw.Write("\"");
						}
							    tw.Write("}");
			}
			#endregion
		}
		
		//函数内变量
        public class show_AutoComplete:Controller
        {
			/*参数变量*/
					/// <summary>
					/// 
					/// </summary>
					public int p;
			/*数据库变量*/
					/// <summary>
					/// 分页语句获取分页对象
            
					/// </summary>
                        public List<__show_us__> us;
			/*一般变量*/
                /// <summary>
                /// 创建Page对象
                /// </summary>
                    public NFinal.Page pg;
			/*DAL函数声明变量*/
        }
		/// <summary>
		/// 变量提示类,用于自动完成.
		/// </summary>
        public show_AutoComplete ViewBag = new show_AutoComplete();
    }
}